/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package commands;

import IA.InformationAggregator;

/**
 *
 * @author Pop
 */
public class CmdBrowseMenuByPrice extends Command{
    private Double price;
    public CmdBrowseMenuByPrice(InformationAggregator ia, String priceStr){
        super(ia);
        price = Double.parseDouble(priceStr);
    }
    @Override
    public Object execute() {
        return ia.getMenu().getMenuByPrice(price);
    }
    
}
